<!DOCTYPE html>
<html lang="en">
<head>
    <title>{$data.title}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="{$data.description}" />
    <meta name="keywords" content="{$data.keyword}" />
    <meta name="robots" content="all"/>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <!-- css -->
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <link href="__MOBILE__css/iconfont.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/am.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/flexslider.css" rel="stylesheet"/>
    <link href="__MOBILE__css/other/style.css" rel="stylesheet"/>
    <!-- moblie -->
    <link rel="stylesheet" href="__MOBILE__css/style.css">
    {$seo.head}
</head>
<body>
{$seo.body}


<div class="m_wrap">
    {include file="public/header" /}
</div>
<div class="_videos _blog">
    <div class="crumbs">
        <i class="iconfont icon-zhuye"></i>
        <a href="/">主页</a>>
        <a href="/blog.html">新闻</a>>
        <a class="crumbs_list">{$data.name}</a>
        <a class="fr"><i class="iconfont icon-fanhui1 __fanhui"></i></a>
    </div>
    <div class="_videos_text">
        <div class="text">
            <h3 class="_title">{$data.name}</h3>
            <div class="_date"><i class="iconfont icon-shijianzhongbiao"></i><span class="date">{$data.create_time}</span><span class="publisher">by<a>{$data.author}</a></span></div>
        </div>
        <div class="_content">
            <!-- 调用富文本编辑器编辑 -->
            {$data.content}
        </div>
        
        <div class="_content_bottom clear">
            {if $b eq null}
            <div class="fl previous_next">
                <a class="">
                    <span>无数据</span>
                </a>
            </div>
            {else \}
            <div class="fl previous_next">
                <a href="/news/{$b.id}.html" class="">
                    <p>上一个</p>
                    <span>{$b.name}</span>
                </a>
            </div>
            {/if}
            {if $c eq null}
            <div class="fl previous_next">
                <a class="">
                    <p>无数据</p>
                </a>
            </div>
            {else \}
            <div class="fl previous_next">
                <a href="/news/{$c.id}.html" class="">
                    <p>下一个</p>
                    <span>{$c.name}</span>
                </a>
            </div>
            {/if}
        </div>
    </div>
</div>

<input type="hidden" value="{$data.id}" id="blog_id">

{include file="public/footer" /}
<script>
    $('.crumbs a:last-child').addClass('crumbs_list')
    $('.crumbs_list').wordLimit(24);
    function btnAction() {
        var data = {
            'name':$('#name').val(),
            'email':$('#email').val(),
            'content':$('#content').val(),
            'website':$('#website').val(),
            'blog_id':$('#blog_id').val()
        };
        $.ajax({
            type: "POST",
            dataType: "json",
            url: '/home/blog/addmessage',
            data: data,
            success: function (res) {
                var success = JSON.parse(res);
                if(success.code===200){
                    $('#name').val('');
                    $('#email').val('')
                    $('#content').val('')
                    $('#website').val('')
                    $('#blog_id').val('')
                    alert(success.msg);
                }else {
                    alert(success.msg);
                }

            }
        });

    }
</script>
<script type="text/javascript">
    $('.crumbs_list').wordLimit(20);
</script>


